package com.lzl.service;

import com.lzl.dao.DeptDao;
import com.lzl.pojo.Dept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl {

    @Resource
    private DeptDao deptDao;

    public boolean addDept(Dept dept){
        return deptDao.addDept(dept);
    }

    public Dept queryById(Long id){
        return deptDao.queryById(id);
    }

    public List<Dept> queryAll(){
        return deptDao.queryAll();
    }
}
